//    Copyright (C) Kherty.  All rights reserved.
using System.Collections.Generic;
using System.Diagnostics.Contracts;

namespace OpenLS.Chart.UI.Internals
{
    public class ChartLineInfo
    {
        public ChartLineInfo(Axis axis, ChartLines lines, double min, double max, double step)
        {
            Minimum = min;
            Maximum = max;
            Step = step;
            Axis = axis;
            ChartLines = lines;
            Contract.Assert(lines != null);

        }
        public Axis Axis { get; private set; }
        public double Minimum{ get; private set; }
        public double  Maximum{ get; private set; }
        public double  Step{ get; private set; }
        //public List<NumericValue> Values { get; private set; }
        public ChartLines ChartLines{get; private set;}
        public IEnumerable<NumericValue>Values
        {
            get
            {
                return ValueProvider.GetNumericValues(Minimum, Maximum, Step);
            }
        }
    }
}